﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Unis.Framework.ORM.Attributes;

namespace KingRoad.EPM.DeviceEntity.Model
{
    /// <summary> 
    /// 车道信息
    /// </summary> 
    [Serializable]
    [ModelMap("Bll_Roadway", new string[] { "Id" })]
    public class BllRoadwayInfo : BaseEntity
    {
        public BllRoadwayInfo()
        {

        }


        private int _id;
        /// <summary>
        /// 主键
        /// </summary>
        [ColumnMap("Id", System.Data.DbType.Int32)]
        public int Id
        {
            get { return _id; }
            set
            {
                if (object.Equals(this._id, value) != true)
                {
                    this._id = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }


        private string _code;
        /// <summary>
        /// 车道编号
        /// </summary>
        [ColumnMap("Code", System.Data.DbType.String)]
        [DisplayName("编号")]
        public string Code
        {
            get { return _code; }
            set
            {
                if (object.Equals(this._code, value) != true)
                {
                    this._code = value;
                    this.RaisePropertyChanged("Code");
                }
            }
        }


        private string _rname;
        /// <summary>
        /// 车道名称
        /// </summary>
        [ColumnMap("RName", System.Data.DbType.String)]
        [DisplayName("名称")]
        public string RName
        {
            get { return _rname; }
            set
            {
                if (object.Equals(this._rname, value) != true)
                {
                    this._rname = value;
                    this.RaisePropertyChanged("RName");
                }
            }
        }


        private int _placid;
        /// <summary>
        /// 车道所在位置Id
        /// </summary>
        [ColumnMap("PlacId", System.Data.DbType.Int32)]
        public int PlacId
        {
            get { return _placid; }
            set
            {
                if (object.Equals(this._placid, value) != true)
                {
                    this._placid = value;
                    this.RaisePropertyChanged("PlacId");
                }
            }
        }

        private int _roadid;
        /// <summary>
        /// 关联仪表便于查询
        /// </summary>
        [ColumnMap("RoadId", System.Data.DbType.Int32)]
        public int RoadId
        {
            get { return _roadid; }
            set
            {
                if (object.Equals(this._roadid, value) != true)
                {
                    this._roadid = value;
                    this.RaisePropertyChanged("RoadId");
                }
            }
        }


        private int _meterid;
        /// <summary>
        /// 绑定的仪表Id
        /// </summary>
        [ColumnMap("MeterId", System.Data.DbType.Int32)]
        public int MeterId
        {
            get { return _meterid; }
            set
            {
                if (object.Equals(this._meterid, value) != true)
                {
                    this._meterid = value;
                    this.RaisePropertyChanged("MeterId");
                }
            }
        }

        private string _meterCode;
        /// <summary>
        /// 仪表编号
        /// </summary>
        [ColumnMap("MeterCode", System.Data.DbType.String)]
        public string MeterCode
        {
            get { return _meterCode; }
            set
            {
                if (object.Equals(this._meterCode, value) != true)
                {
                    this._meterCode = value;
                    this.RaisePropertyChanged("MeterCode");
                }
            }
        }

        private string _model;
        /// <summary>
        /// 仪表型号
        /// </summary>
        [ColumnMap("Model", System.Data.DbType.String)]
        [DisplayName("型号")]
        public string Model
        {
            get { return _model; }
            set
            {
                if (object.Equals(this._model, value) != true)
                {
                    this._model = value;
                    this.RaisePropertyChanged("Model");
                }
            }
        }


        private decimal _lon;
        /// <summary>
        /// 经度
        /// </summary>
        [ColumnMap("Lon", System.Data.DbType.Decimal)]
        [DisplayName("经度")]
        public decimal Lon
        {
            get { return _lon; }
            set
            {
                if (object.Equals(this._lon, value) != true)
                {
                    this._lon = value;
                    this.RaisePropertyChanged("Lon");
                }
            }
        }


        private decimal _lat;
        /// <summary>
        /// 纬度
        /// </summary>
        [ColumnMap("Lat", System.Data.DbType.Decimal)]
        [DisplayName("纬度")]
        public decimal Lat
        {
            get { return _lat; }
            set
            {
                if (object.Equals(this._lat, value) != true)
                {
                    this._lat = value;
                    this.RaisePropertyChanged("Lat");
                }
            }
        }


    }
}
